<style>
.el-tabs--card {
  height: calc(100vh - 140px);
}
.el-tab-pane {
  height: calc(100vh - 140px);
  overflow-y: auto;
}
</style>
<template>
  <div>
    <el-tabs v-model="activeName">
      <el-tab-pane label="权限信息" name="permissionList">
        <permission-list ref="permissionList"/>
      </el-tab-pane>
<!--      <el-tab-pane label="添加权限" name="permissionAddNew" >-->
<!--        <permission-add-new ref="permissionAddNew" @changeTab="changeTab"/>-->
<!--      </el-tab-pane>-->
    </el-tabs>
  </div>
</template>

<script>
import permissionList from "@/views/backState/staff/permission/permissionList.vue";
import permissionAddNew from "@/views/backState/staff/permission/permissionAddNew.vue";

export default {
  name: "jurisdictionMain",
  components: {
    permissionList,
    permissionAddNew
  },
  data() {
    return {
      activeName: "permissionList"
    }
  },
  methods: {
    changeTab(name) {
      this.activeName = name;
      this.$refs.permissionList.loadPermission();
      this.$refs.permissionAddNew.resetForm();
    }
  }
}
</script>

